import React from "react";
import * as API from "@/services";

export type LayoutBgClassName = "bg-bule-328" | "bg-bule-450" | "bg-bule-433" | "bg-grey-full"

export type HxConfigContextPropsType = {
  LayoutBgClassName?: LayoutBgClassName;
  setLayoutBgClassName?: (className?: LayoutBgClassName) => void;
  siteInfo?: API.FrontSiteAbout;
  authedRedirect?:  string | null;
  isZhCN?: boolean;
  locale?: string;
  currentUserInfo?: API.User;
  logout?: () => void;
};

export const HxConfigContext = React.createContext<HxConfigContextPropsType>({});
